<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="../tmp/gridKorisnici.xml" --><!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
<div class="outerGridBorder1">
<div class="outerGridBorder2">
<div class="innerGridBorder">
<table cellspacing="0">

      <tr>
    <th class="columnCaption" width="25" scope="col" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_set_order", "grid_order_type": "number", "grid_order_field": "id", "grid_order": "{/form/variables/grid_anti_order}" }}) '>ID
      <xsl:if test="/form/variables/grid_order_field = 'id'">
        <img><xsl:attribute name="src">/xslt/img/arrow<xsl:value-of select="substring(/form/variables/grid_order, 1, 3)"/>.gif</xsl:attribute></img>
      </xsl:if>
    </th>
    <th class="columnCaption" width="100" scope="col" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_set_order", "grid_order_field": "login", "grid_order": "{/form/variables/grid_anti_order}" }}) '>login
      <xsl:if test="/form/variables/grid_order_field = 'login'">
        <img><xsl:attribute name="src">/xslt/img/arrow<xsl:value-of select="substring(/form/variables/grid_order, 1, 3)"/>.gif</xsl:attribute></img>
      </xsl:if>
    </th>
    <th class="columnCaption" width="225" scope="col" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_set_order", "grid_order_field": "description", "grid_order": "{/form/variables/grid_anti_order}" }}) '>description
      <xsl:if test="/form/variables/grid_order_field = 'description'">
        <img><xsl:attribute name="src">/xslt/img/arrow<xsl:value-of select="substring(/form/variables/grid_order, 1, 3)"/>.gif</xsl:attribute></img>
      </xsl:if>
    </th>
    <th class="columnCaption" width="25" scope="col" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_set_order", "grid_order_field": "status", "grid_order": "{/form/variables/grid_anti_order}" }}) '>status
      <xsl:if test="/form/variables/grid_order_field = 'status'">
        <img><xsl:attribute name="src">/xslt/img/arrow<xsl:value-of select="substring(/form/variables/grid_order, 1, 3)"/>.gif</xsl:attribute></img>
      </xsl:if>
    </th>
    <th class="columnCaption" width="150" scope="col" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_set_order", "grid_order_field": "last_login_date", "grid_order": "{/form/variables/grid_anti_order}" }}) '>last login
      <xsl:if test="/form/variables/grid_order_field = 'last_login_date'">
        <img><xsl:attribute name="src">/xslt/img/arrow<xsl:value-of select="substring(/form/variables/grid_order, 1, 3)"/>.gif</xsl:attribute></img>
      </xsl:if>
    </th>

    <th colspan="2" class="columnCaption">&nbsp;</th>
  </tr>
  <xsl:for-each select="form/tables/bee_user/row">
    <xsl:sort select="*[name(.)=/form/variables/grid_order_field]" order="{/form/variables/grid_order}" data-type="{/form/variables/grid_order_type}"/>
    <xsl:variable name="stil">
      <xsl:choose>
        <xsl:when test="position() mod 2 = 0">par</xsl:when>
        <xsl:otherwise>nepar</xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <tr class="{$stil}">
      <td width="40"><xsl:value-of select="id"/></td>
      <td><xsl:value-of select="login"/></td>
      <td><xsl:value-of select="description"/></td>
      <td>
       <xsl:choose>
        <xsl:when test="status=1">active</xsl:when>
        <xsl:otherwise>inactive</xsl:otherwise>
       </xsl:choose>
      </td>
      <td><xsl:value-of select="concat(substring(last_login_date, 9, 2), '.', substring(last_login_date, 6, 2), '.', substring(last_login_date, 1, 4) , ' ', substring(last_login_date, 12))"/></td>
      <td  align="center" class="gumb" width="25px" onclick="location.href='index.php?__form=userData&amp;__frm_back={/form/variables/sys_page}&amp;id={id}&amp;__noload=true'">edit</td>
			<td  align="center" class="gumb" width="25px" onclick="location.href='index.php?__form=userData&amp;__frm_back={/form/variables/sys_page}&amp;id={id}&amp;__noload=true&amp;sys_action=delete'">delete</td>
    </tr>
  </xsl:for-each>  
  <tr height="20px">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="5" class="pager">
    <table width="100%">
     <tr>
     <xsl:if test="/form/variables/grid_num_rows &gt; /form/variables/app_grid_step">
      <td>
      <table><tr>
        <xsl:if test="/form/variables/grid_page_no &gt; /form/variables/app_FFWD_STEP"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_first" }}) '>&lt;&lt;&lt;</td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &gt;= /form/variables/app_FFWD_STEP"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_FBWD" }}) '>&lt;&lt;</td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &gt; 0"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_prev" }}) '>&lt;</td></xsl:if>&nbsp;
        <xsl:if test="/form/variables/grid_page_no &gt; 3"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no - 4}" }}) '><xsl:value-of select="form/variables/grid_page_no - 3" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &gt; 2"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no - 3}" }}) '><xsl:value-of select="form/variables/grid_page_no - 2" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &gt; 1"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no - 2}" }}) '><xsl:value-of select="form/variables/grid_page_no - 1" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &gt; 0" ><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no - 1}" }}) '><xsl:value-of select="form/variables/grid_page_no" /></td></xsl:if><td>
        <xsl:value-of select="form/variables/grid_page_no + 1" /></td>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - 1"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no + 1}" }}) '><xsl:value-of select="form/variables/grid_page_no + 2" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - 2"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no + 2}" }}) '><xsl:value-of select="form/variables/grid_page_no + 3" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - 3"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no + 3}" }}) '><xsl:value-of select="form/variables/grid_page_no + 4" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - 4"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_goto", "page_no": "{form/variables/grid_page_no + 4}" }}) '><xsl:value-of select="form/variables/grid_page_no + 5" /></td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - 1"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_next" }}) '>&gt;</td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - /form/variables/app_FFWD_STEP"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_FFWD" }}) '>&gt;&gt;</td></xsl:if>
        <xsl:if test="/form/variables/grid_page_no &lt; /form/variables/grid_num_rows div /form/variables/app_grid_step - /form/variables/app_FFWD_STEP - 1"><td style="border:dotted #999 thin; cursor:pointer" onclick='javascript:handleGridEvent({{ "__ajax": "{form/variables/__ajax}", "sys_action": "grid_last" }}) '>&gt;&gt;&gt;</td></xsl:if>
      </tr></table>
      </td>      
     </xsl:if>
      <td class="inpRight">
        <xsl:choose>
          <xsl:when  test="form/variables/grid_total_rows &gt; (form/variables/grid_page_no + 1) * form/variables/app_grid_step">
            <xsl:value-of select="form/variables/grid_page_no * form/variables/app_grid_step + 1"/> - <xsl:value-of select="(form/variables/grid_page_no + 1) * form/variables/app_grid_step"/> of <xsl:value-of select="form/variables/grid_total_rows"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="form/variables/grid_page_no * form/variables/app_grid_step + 1"/> - <xsl:value-of select="form/variables/grid_total_rows"/> of <xsl:value-of select="form/variables/grid_total_rows"/>
          </xsl:otherwise>
        </xsl:choose>
      </td>
     </tr>
    </table>
    </td>
  </tr>
 </table>
</div>
</div>
</div>
</xsl:template>
</xsl:stylesheet>